﻿<telerikWindow:RadWindow  
    x:Class="Rio.Framework.Pages.ChildWindows.FilterWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           MaxHeight="400"          
      xmlns:telerikWindow="http://schemas.telerik.com/2008/xaml/presentation"
           Width="600" Height="460" DialogResult="False" Closed="ChildWindow_Closed">


    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="40"/>
            <RowDefinition />
            <RowDefinition MaxHeight="40"/>
        </Grid.RowDefinitions>
        <CheckBox Name="checkboxFilter" Grid.Row="0" Margin="2,5,2,5" Checked="checkboxFilter_Checked" Unchecked="checkboxFilter_Unchecked" />
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <TextBlock Name="LabelContains" VerticalAlignment="Center" Margin="5"  />
            <TextBox Name="ContainFilter" Width="300" Margin="5,5,5,5" TextChanged="ContainFilter_TextChanged" />
        </StackPanel>
        <ListBox Name="listboxValues" Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Auto">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid Background="Transparent" Cursor="Hand" MouseLeftButtonDown="Item_MouseLeftButtonDown">
                        <TextBlock x:Name="Text" Margin="5, 5, 5, 5" Text="{Binding }" FontSize="12"  />
                    </Grid>
                </DataTemplate>

            </ListBox.ItemTemplate>

        </ListBox>
        <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button  Name="buttonOk" Height="30" Width="100" HorizontalAlignment="Right" Margin="0,5,10,0" Click="buttonOk_Click" />
            <Button  Name="buttonCancel" Height="30" Width="100" HorizontalAlignment="Right" Margin="0,5,10,0" Click="buttonCancel_Click" />
        </StackPanel>
    </Grid>
</telerikWindow:RadWindow >